import React, {forwardRef} from "react";
import TagsInput from "react-tagsinput";


const VerifyTagsInput = forwardRef(function (props, ref) {
    let {value, onChange} = props;

    return (
        <TagsInput inputProps={{placeholder: '回车增加'}} onlyUnique={true} value={value || []}
                   onChange={(tags) => {
                       onChange(tags)
                   }}/>
    );
});

export default VerifyTagsInput;